package com.telit.firecommand.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

/**
 * Create by Chencf 2022/12/21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FireQueryListDTO {

    @ApiModelProperty(value = "火情状态")
    private String status;
    @ApiModelProperty(value = "行政区划")
    private String districtCode;

    @ApiModelProperty(value = "是否为值守员角色 0 否 1 是")
    private Integer isWatchman;


    @ApiModelProperty(value = "来源")
    private String resource;

    @ApiModelProperty(value = "开始页")
    private Integer page;
    @ApiModelProperty(value = "数量")
    private Integer rows;

    @ApiModelProperty(value = "开始时间")
    private String startTime;
    @ApiModelProperty(value = "结束时间")
    private String endTime;

    private List<String> fireIds;

    @ApiModelProperty(value = "状态集合")
    private String statusList;

    private Set<Integer> statusLists;


    @ApiModelProperty(value = "发现人姓名id")
    private Long finderId;

    @ApiModelProperty(value = "发现人姓名")
    private String finderName;

    @ApiModelProperty(value = "isEmergencyDrill")
    private String isEmergencyDrill;

    @ApiModelProperty(value = "火情等级")
    private String fireLevel;

    @ApiModelProperty(value = "火情等级，英文逗号拼接")
    private String fireLevels;

    /*
     * TODO：该参数是宜昌项目对接外部，外部需要这样区分
     * 重要火情数：fire_level in ('1','2','3','4')
     * 一般火情数（不是 重要火情、非火情、重复告警）：((fire_level in ('5') or fire_level is null) and (status != '6') and (origin_fire_id = 0))
     * 非火情：status = '6'
     * 重复告警数：origin_fire_id != 0
     */
    @ApiModelProperty(value = "火情类型（1-重要火情 2-常规火情 3-非火情 4-重复告警），英文逗号拼接")
    private String fireTypes;

    @ApiModelProperty(value = "火情名称")
    private String fireName;

}
